package com.ztgf.shopping.models.dto.shop;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ztgf.common.dto.BaseDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * author: chenyu.wang
 * date: 2020-07-10 14:22
 * Description: 商家入驻合同表对象
 */
@Data
@TableName("shop_contract_settle_in")
@ApiModel(value = "商家入驻合同表对象", description = "商家入驻合同表对象")
public class ShopContractSettleInDTO extends BaseDTO implements Serializable {

    @ApiModelProperty(value = "店铺id")
    private Long shopId;
    @ApiModelProperty(value = "公司名称")
    private String name;
    @ApiModelProperty(value = "合同地址")
    private String contractUrl;
    @ApiModelProperty(value = "合同名称")
    private String contractName;
    @ApiModelProperty(value = "契约锁合同id")
    private String contractLockId;

    @ApiModelProperty("开始时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    protected Date startDate;

    @ApiModelProperty("结束时间")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    protected Date endDate;

    @ApiModelProperty(value = "过期状态 到期状态 0正常，1即将到期，2已过期")
    protected Integer expireStatus;

    @ApiModelProperty(value = "0未签订，1已签订")
    protected Integer status;

    @ApiModelProperty(value = "签订日期")
    private Date signTime;
}
